home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 1.iso / games / fibsw130.zip / DELPHTYM.SCC < prev    next >
Text File  |  1994-08-03  |  4KB  |  110 lines

  1. @echo 0 ;%%Delphi via Tymnet
  2. @rem ******************************************************************
  3. @rem ****                                                         *****
  4. @rem ****   This script logs on to Delphi via Tymnet              *****
  5. @rem ****   Grateful acknowledgements and thanks to Cary Camden.  *****
  6. @rem ****                                                         *****
  7. @rem ****                                                         *****
  8. @rem ******************************************************************
  9.  
  10. @rem ***dial using dial.scr
  11. @board 0
  12. @echo "\r\n **** Connection to FIBS via Delphi/Tymnet... ***\r\n"
  13. <dial.scr
  14.  
  15. @rem *****************************************************
  16. @rem ***  Connect to Delphi via Tymnet                  **
  17. @rem *****************************************************
  18.  
  19. @wait 3
  20. @send "o"
  21. @if not @wait ":" 10
  22. @    send "o"
  23. @    if not @wait ":" 10
  24. @      echo "\r\n** Error(delphtym.scc): Tymnet connect prompt not received\r\n"
  25. <
  26. @    endif
  27. @endif
  28. @send "DELPHI\r"
  29.  
  30.  
  31.  
  32. @rem *****************************************************
  33. @rem ***  Execute the login procedure                   **
  34. @rem *****************************************************
  35.  
  36. @if "%HostLoginName%" != ""
  37. @:RetryLogin
  38. @   if "%NetworkScript%" == "manual.scn"
  39. @       wait "sername:"   ; If manual network connect, don't prompt or timeout for login
  40. @   else
  41. @       echo "\r\n** Logging in...\r\n"
  42. @       if not @wait "sername:" 40    
  43. @           echo "\r\n** Error(delphspr.scc): error - Host Login Prompt not received\r\n"
  44. @           send "\r"
  45. @           goto RetryLogin
  46. @       endif
  47. @   endif
  48. @   send "%HostLoginName%\r"
  49. @   if not @wait "\n" 40
  50. @      echo "\r\n** Error(delphspr.scc): No response to Host Login Name\r\n"
  51. <
  52. @   endif
  53. @   if "%HostPassword%" != ""
  54. @       if not @wait "assword:" 30  ; e.g. "Password:" or "password:"
  55. @           echo "\r\n** Error(delphspr.scc): Host Password prompt not received\r\n"
  56. <
  57. @       endif
  58. @       send "%HostPassword%\r"
  59. @       if not @wait "\n" 40
  60. @           echo "\r\n** Error(delphspr.scc): No response to Host Password\r\n"
  61. <
  62. @       endif
  63. @   else
  64. @       rem ** We need to synchronize around the password **
  65. @       echo "\r\n** Automated login script will resume after you enter your password\r\n"
  66. @       if not @wait "assword:" 40
  67. @          echo "\r\n** Error(delphspr.scc): Host password prompt not received\r\n"
  68. <
  69. @       endif
  70. @       passwordEntry 1
  71. @       wait "\n" 
  72. @       passwordEntry 0
  73. @   endif ; HostPassword
  74. @else 
  75. @   if "%NetworkScript%" != "manual.scn"  ; No prompts if manual network connect
  76. @       echo "\r\n** Automated login script will resume after login is complete\r\n"
  77. @   endif
  78. @   wait "sername:"
  79. @   wait "assword:"
  80. @   passwordEntry 1
  81. @   wait "\n"
  82. @   passwordEntry 0
  83. @endif ; HostLoginName
  84.  
  85.  
  86. @rem ***************************************************
  87. @rem *** Go from MAIN Prompt to Internet Conference ****
  88. @rem ***************************************************
  89.  
  90. @delphifix 1 ; // Ignore LFs, CR -> CR+LF.
  91.  
  92. @wait "MAIN>What do you want to do? "
  93.  
  94. @send "/busy\r"    ;disables confernce messages
  95. @wait "MAIN>What do you want to do? "
  96.  
  97. @send "/prompt=brief\r"
  98. @wait "MAIN>What do you want to do? "
  99.  
  100. @send "/width 255\r"
  101. @wait "MAIN>What do you want to do? "
  102.  
  103. @send "/echo HOST\r"
  104. @wait "MAIN>What do you want to do? "
  105.  
  106.  
  107. @send "go Int telnet %FibsInternetAddress% %FibsTelnetPort%\r"
  108.  
  109. <fibslogn.scr
  110.